package com.example.consumer;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * @author wangbin
 */
@RestController
public class TestController {
    @Resource
    private TestClient testClient;

    @GetMapping("/test/{name}")
    public String test(@PathVariable String name) {
        return testClient.test(name);
    }
}
